<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>养殖场(户)日常巡查记录</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index?menuId=1">首页</a>
                </li>
                <li>
                    <a>监督检查</a>
                </li>
                <li class="active">
                    <strong>养殖场(户)日常巡查记录</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="search_InspectionDate" placeholder="巡查日期"
                                           name="search_InspectionDate" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search"
                                        onclick="doSearch()"><i
                                        class="fa fa-search"></i>&nbsp;搜索
                                </button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh"
                                        onclick="doRest()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置
                                </button>
                            </div>
                        </div>

                        <div class="jqGrid_wrapper">
                            <div class="btn-group-sm" id="toolbar" role="group">
                                <a class="btn btn-success" name="AddNew" id="AddNew" data-toggle="modal"
                                   data-target="#myModalAdd" onclick="addRecord();">
                                    <i class="fa fa-plus"></i> 新增
                                </a>
                            </div>

                            <table class="table table-striped table-bordered table-hover " id="tableList">
                            </table>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">养殖场(户)日常巡查记录信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <div class="row">
                                    <label class="col-lg-2 control-label">巡查日期</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_inspectionDate" name="text_inspectionDate"
                                                   placeholder="巡查日期" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">被巡查对象名称</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_inspectionName' name='text_inspectionName' class="form-control" onchange="getName2(this.value)">
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">地址</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_address" name="text_address" placeholder="地址" readonly
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">联系电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_phone" name="text_phone" placeholder="联系电话" readonly
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">饲养畜禽种类</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_animalType' name='text_animalType' class="form-control"
                                                    placeholder="饲养畜禽种类">
                                                <option value="猪" selected>猪</option>
                                                <option value="鸡">鸡</option>
                                                <option value="鸭">鸭</option>
                                                <option value="羊">羊</option>
                                                <option value="牛">牛</option>
                                                <option value="其它">其它</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">种公畜禽存栏数</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="text_male" name="text_male" placeholder="种公畜禽存栏数"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">经产母畜禽存栏数</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="text_menstruation" name="text_menstruation"
                                                   placeholder="经产母畜禽存栏数" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">后备母畜禽存栏数</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="text_reserve" name="text_reserve"
                                                   placeholder="后备母畜禽存栏数" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">商品母畜禽</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="text_shop" name="text_shop" placeholder="商品母畜禽"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">现场畜禽存栏数是否与养殖档案记录相符</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_consistent' name='text_consistent' class="form-control"
                                                    placeholder="现场畜禽存栏数是否与养殖档案记录相符">
                                                <option value="相符" selected>相符</option>
                                                <option value="误差小于等于10%">误差小于等于10%</option>
                                                <option value="误差大于等于10%">误差大于等于10%</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">是否取得《动物防疫条件合格证》</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_certificate' name='text_certificate' class="form-control"
                                                    placeholder="是否取得《动物防疫条件合格证》">
                                                <option value="是">是</option>
                                                <option value="否">否</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">饲养动物是否健康</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_healthy' name='text_healthy' class="form-control"
                                                    placeholder="饲养动物是否健康">
                                                <option value="健康" selected>健康</option>
                                                <option value="不健康">不健康</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">养殖档案建立情况</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_archives' name='text_archives' class="form-control"
                                                    placeholder="养殖档案建立情况">
                                                <option value="完整" selected>完整</option>
                                                <option value="不完整">不完整</option>
                                                <option value="未建立">未建立</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">强制免疫计划落实情况</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_implementation' name='text_implementation'
                                                    class="form-control" placeholder="强制免疫计划落实情况">
                                                <option value="已落实" selected>已落实</option>
                                                <option value="未落实">未落实</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">其它事项记录</label>
                                    <div class="col-lg-10">
                                        <div class="form-group">
                                            <input type="text" id="text_otherThing" name="text_otherThing"
                                                   placeholder="其它事项记录" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">巡查人员签字</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_inspectionPerson"
                                                   name="text_inspectionPerson"
                                                   placeholder="巡查人员签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">被巡查人员签字</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_toInspectionPerson"
                                                   name="text_toInspectionPerson"
                                                   placeholder="被巡查人员签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;提交
                    </button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/form/farmersDaily.js}"></script>
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    FarmersDaily.init();
</script>
</html>
